//
//  NSString+Ext.h
//  MyLib
//
//  Created by zhuyechao on 18/04/2017.
//  Copyright © 2017 zyc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Ext)

- (NSString *)replace:(NSString *)target withString:(NSString *)replacement;

- (NSString *)substring:(NSUInteger)from to:(NSUInteger)to;

- (NSString *)substring:(NSUInteger)from length:(NSUInteger)length;

- (BOOL)startWith:(NSString *)prefix;

- (BOOL)endWith:(NSString *)suffix;

- (BOOL)contains:(NSString *)str;

@end
